package structures.xmltable;

public class ServiceRcOutBaseTypeParameter extends ServiceBaseTypeParameter {

	private static final long serialVersionUID = 3619205905518605379L;

	public ServiceRcOutBaseTypeParameter(String type) {
		super(false, type);
	}
	
	public ServiceRcOutBaseTypeParameter(String bagKey, String value,
			String aciklama, boolean optional,
			boolean input, String type, String idValue) {
		super(bagKey, value, aciklama, optional, input, type);
		setIdValue(idValue);
	}

	public ServiceRcOutBaseTypeParameter(String name, String idValue) {
		super(false, false);
		this.setBagKey(name);
		this.setYeni(false);
		setIdValue(idValue);
	}
	
	@Override
	public String getIdValue() {
		if(idValue == null || idValue.equals(""))
			return bagKey;
		return idValue;
	}

	@Override
	public void setIdValue(String idValue) {
		if(idValue == null || idValue.equals(EMPTY_STRING))
			this.idValue = bagKey;
		else
			this.idValue = idValue;
	}
	
}
